package itsm.isperp.module.entity.app;

import java.sql.Time;
import java.util.Date;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 工作日历设定
 * 
 * @author lizx
 * @date 2013-5-12
 */
@Entity
@Table(name = "app_calendar_config")
public class AppCalendarConfig implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	protected String id;

	@Column
	protected String name;
	@DateTimeFormat(pattern = "HH:mm")
	@Column
	protected Time amBegin;
	@DateTimeFormat(pattern = "HH:mm")
	@Column
	protected Time amEnd;
	@DateTimeFormat(pattern = "HH:mm")
	@Column
	protected Time pmBegin;

	@DateTimeFormat(pattern = "HH:mm")
	@Column
	protected Time pmEnd;

	@Column
	protected boolean week1;

	@Column
	protected boolean week2;

	@Column
	protected boolean week3;

	@Column
	protected boolean week4;

	@Column
	protected boolean week5;

	@Column
	protected boolean week6;

	@Column
	protected boolean week7;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column
	protected Date fromDate;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column
	protected Date toDate;


	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Time getAmBegin() {
		return amBegin;
	}

	public Time getAmEnd() {
		return amEnd;
	}

	public Time getPmBegin() {
		return pmBegin;
	}

	public Time getPmEnd() {
		return pmEnd;
	}

	public boolean isWeek1() {
		return week1;
	}

	public boolean isWeek2() {
		return week2;
	}

	public boolean isWeek3() {
		return week3;
	}

	public boolean isWeek4() {
		return week4;
	}

	public boolean isWeek5() {
		return week5;
	}

	public boolean isWeek6() {
		return week6;
	}

	public boolean isWeek7() {
		return week7;
	}

	public Date getFromDate() {
		return fromDate;
	}

	public Date getToDate() {
		return toDate;
	}

	 

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setAmBegin(Time amBegin) {
		this.amBegin = amBegin;
	}

	public void setAmEnd(Time amEnd) {
		this.amEnd = amEnd;
	}

	public void setPmBegin(Time pmBegin) {
		this.pmBegin = pmBegin;
	}

	public void setPmEnd(Time pmEnd) {
		this.pmEnd = pmEnd;
	}

	public void setWeek1(boolean week1) {
		this.week1 = week1;
	}

	public void setWeek2(boolean week2) {
		this.week2 = week2;
	}

	public void setWeek3(boolean week3) {
		this.week3 = week3;
	}

	public void setWeek4(boolean week4) {
		this.week4 = week4;
	}

	public void setWeek5(boolean week5) {
		this.week5 = week5;
	}

	public void setWeek6(boolean week6) {
		this.week6 = week6;
	}

	public void setWeek7(boolean week7) {
		this.week7 = week7;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
 

}
